package com.ivo.activiti.bpmn.record;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author wj
 * @version 1.0
 */
@Setter
@Getter
public abstract class Record {

    /**
     * 单号s
     */
    private String orderNumber;

    /**
     * 节点
     */
    private String node;

    /**
     * 发送者
     */
    private String sender;

    private String senderName;

    private String senderGroup;

    private String senderGroupName;

    /**
     * 处理人
     */
    private String handler;

    private String handlerName;

    private String handlerGroup;

    private String handlerGroupName;

    /**
     * 代理人
     */
    private String deputy;

    private String deputyName;

    private String deputyGroup;

    private String deputyGroupName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createDate;

    /**
     * 处理时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date handleDate;

    /**
     * 决策：同意、不同意
     */
    private String transition;

    /**
     * 签核意见
     */
    private String comment;
}
